import request from '@/utils/request'

// 删除日志
export const deleteLog = (logId) => request({
  url: '/admin/log',
  method: 'delete',
  params: { logId }
})

// 分页查询日志
export const pageQuery = (data) => request({
  url: '/admin/log/page',
  method: 'post',
  data
})

// 分页查询日志
export const pageQueryUser = (data) => request({
  url: '/admin/log/user/page',
  method: 'post',
  data
})

// 分页查询日志
export const showDetail = (id) => request({
  url: `/admin/log/error/${id}`,
  method: 'get'
})
